<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <title>Layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" th:href="@{/css/layui.css}"  media="all">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend><b th:text="${username}"></b>的数据主页</legend>
</fieldset>
<div class="layui-body">
  <!-- 内容主体区域 -->
  <!--
      iframe：页面嵌套标签
    -->

  <iframe name="index" width="100%" height="50%" th:src="@{welcome}" frameborder="0"></iframe>
</div>
<fieldset class="layui-elem-field">
  <a>
  <legend th:width="50"><b th:text="${username}"></b>的关注列表</legend>
  </a>
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <!--
        iframe：页面嵌套标签
      -->

    <iframe name="index" width="100%" height="500xp" th:src="@{|/followees/${userId}|}" frameborder="0"></iframe>
  </div>
  <div class="layui-field-box">
    <ul class="list-unstyled">
      <!--        循环队列-->
      <li class="media pb-3 pt-3 mb-3 border-bottom position-relative" th:each="map:${conversations}">
        <fieldset class="layui-elem-field">
          <!--                几条未读消息-->
          <span class="layui-badge" th:text="${map.unreadCount}">9</span>
          <div class="media-body">
            <h4 class="mt-0 mb-3">
              <!--                   用户名称-->
              <a th:href="@{|/vip/vipdeail/${map.conversation.conversationId}|}" >
                <span class="layui-btn layui-btn-normal" th:width="100px" th:utext="${map.target.username}">落基山脉下的闲人<span class="layui-badge">9</span></span>
              </a>
              <!--                        加急-->
              <br>
              <br>
              <ul>
                <li>
                  <form th:action="@{/like}" method="post">
                    <input type="hidden" name="conversationId" th:value="${map.conversation.conversationId}">
                    <button type="submit" class="layui-btn" th:text="${likeStatus == 1 ? '已加急' : '加急'}">加急</button>
                    <!--                                    <div class="invalid-feedback" th:text="${likeMsg}">-->
                    <!--                                        密码不正确-->
                    <!--                                    </div>-->
                  </form>
                </li>
              </ul>
              <!--                   具体时间-->
              <span style="padding-left: 1200px" th:text="${#dates.format(map.conversation.createTime,'yyyy-MM-dd HH:mm:ss')}">2019-04-28 14:13:25</span>
            </h4>
            <br>
<!--            <div>-->
<!--              &lt;!&ndash;                        问题摘要&ndash;&gt;-->
<!--              <h4>-->
<!--                <a href="" th:width="100px" th:utext="${map.conversation.content}">米粉车, 你来吧!</a>-->
<!--              </h4>-->
<!--            </div>-->
          </div>
        </fieldset>
      </li>
    </ul>
  </div>
</fieldset>
<script th:src="@{/layui.js}" charset="utf-8"></script>
<!--<script th:src="@{/js/discuss.js}"></script>-->
</body>
</html>